package com.hbzd.protection.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 日期格式化
 * 
 * @author LYW
 *
 */
public class DateUtil {

	private static SimpleDateFormat stFormat = new SimpleDateFormat("yyyy-MM");
	public static String getStFormat(Date date) {
		return stFormat.format(date);
	}
	
	private static SimpleDateFormat stDayFormat = new SimpleDateFormat("yyyy-MM-dd");
	public static String getStDayFormat(Date date) {
		return stDayFormat.format(date);
	}
	
	private static SimpleDateFormat stDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	public static String getStDateFormat(Date date) {
		return stDateFormat.format(date);
	}
	
}
